package com.zlyx.easy.http.exceptions;

/**
 * 异常
 * 
 * @Auth 赵光
 * @Describle
 * @2019年12月25日
 */
public class MappingHandlerException extends Exception {

	private static final long serialVersionUID = 1L;

	public MappingHandlerException(String message) {
		super(message);
	}

	public MappingHandlerException(Exception e) {
		super(e.getMessage());
	}

	public static Exception exception(String message) {
		return new MappingHandlerException(message);
	}

	public static Exception exception(Throwable e) {
		return exception(e.getMessage());
	}

}
